
// export default function(oparam){
//   this.success=oparam.success;
//   this.fail=oparam.fail;     
//     cordova.exec(function(obj) {  
//        this.success(obj)
//     }, function(e) {
//        this.fail()
//     }, "UsersInfo","getUsersInfo",[]);
// }
export default function(oparam){
  let _this=this;
  this.success=oparam.success;
  var testUri = "content://com.chinasie.vplus.context.SMOMContentProvider/context";	
  var jsonArg = { contentUri: testUri, projection: null, selection: null, selectionArgs: null, sortOrder: null };
         cordova.exec(function (obj) {
        var data = JSON.stringify(obj);       
        let _newobj={};
        obj.forEach(item=>{
          _newobj[item.key]=item.value
        })
        _this.success(_newobj)
         }, function (e) {
            alert("Error: " + e);
         }, "ContentProviderPlugin", "query", [jsonArg]);
}